package org.bim.view.drag.design.api.req;

import lombok.Getter;
import lombok.Setter;
import org.bim.view.drag.design.entity.TVisualDb;
import org.bim.view.drag.design.util.BeanUtils;

/**
 * @author
 * @date 2021/12/17 11:08 上午
 */
@Getter
@Setter
public class VisualDbReq extends PageReq {
    private String id;
    private Integer createDept;
    private String driverClass;
    private String name;
    private String password;
    private String remark;
    private Integer status;
    private String url;
    private String username;
    private String projectId;

    public TVisualDb toEntity() {
        TVisualDb entity = new TVisualDb();
        BeanUtils.copyPropertiesIgnoreNull(this, entity);
        return entity;
    }
}
